import request from '../../utils/request'

// 新增入学档案
export function addEnrollmentRecord(data) {
    return request({
        url: '/system/record',
        method: 'POST',
        data
    })
}

// 获取入学档案详细信息
export function getEnrollmentRecordDetail(externalUserid) {
    return request({
        url: `/system/record/${externalUserid}`,
        method: 'GET'
    })
}

// 修改入学档案
export function updateEnrollmentRecord(data) {
    return request({
        url: '/system/record',
        method: 'PUT',
        data
    })
}

// 删除入学档案
export function deleteEnrollmentRecord(ids) {
    return request({
        url: `/system/record/${ids.join(',')}`,
        method: 'DELETE'
    })
}